package com.csg.feign;

import com.csg.feign.impl.SystemFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 远程调用 iomp-system 的服务接口
 * @author George Chan
 * @version 1.0
 * @date 2020/2/14 22:16
 * @since jdk1.8
 */
@Service
@FeignClient(name = "iomp-system", fallback = SystemFeignFallback.class)
public interface SystemFeignClient {
    /**
     * 方法调用
     * @return
     */
    @RequestMapping(value = "/api/system/hello", method = RequestMethod.GET)
    String sayHelloFeign();
}
